package com.zhiyume;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.zhiyume.dao.api")
@ServletComponentScan
public class Appliaction extends SpringBootServletInitializer {
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(Appliaction.class);
	}

	private static final Logger logger = LoggerFactory.getLogger(Appliaction.class);

	public static void main(String[] args) {
		logger.info("--应用启动");
		// TODO Auto-generated method stub
		SpringApplication.run(Appliaction.class, args);
	}
}

